package com.sxt.shiro.service.imp;

import com.sxt.shiro.domain.User;
import com.sxt.shiro.service.UserService;

import java.util.Date;


public class UserServiceImpl implements UserService {


	public User queryUserByUserName(String username) {
		User user=null;
		if ("zhangsan".equals(username)) {
			user = new User(1, "zhangsan", "e3f3439c8ce59b1042c5c72a339336a9", new Date());
		} else if ("lisi".equals(username)) {
			user = new User(2, "lisi", "123456", new Date());
		} else if ("wangwu".equals(username)) {
			user = new User(3, "wangwu", "123456", new Date());
		}
		return user;
	}

}
